@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="payServiceInfoForm">
            <div style="display: none">
                <input type="hidden" id="id" value="${id}"/>
                <input type="hidden" id="lowestMoney" value="${lowestMoney}"/>
                <input type="hidden" id="highestMoney" value="${highestMoney}"/>
                <input type="hidden" id="zheMoney" value="${zheMoney}"/>
            </div>
            <div id="url1" class="row">
                <#input id="updateMoney" name="修改金额*" underline="true"/>
            </div>
            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="updateDealMoney1()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="close1()"/>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/basicData/payService/payService_info.js"></script>
<script>

    /**
     * 关闭此对话框
     */
    function close1() {
        var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
        parent.layer.close(index);
    }

    function  updateDealMoney1() {

        var id = $('#id').val();
        var updateMoney = $('#updateMoney').val();
        var zheMoney = $("#zheMoney").val();
        var lowestMoney = $("#lowestMoney").val();
        var highestMoney = $("#highestMoney").val();
        if (updateMoney != "" && updateMoney == "") {
            alert("请输入修改金额！");
            return
        }
        if (parseFloat(updateMoney) > parseFloat(highestMoney)) {
            alert("修改金额不能大于最高金额，请重新输入！...");
            return
        }
        if (parseFloat(updateMoney) < parseFloat(lowestMoney)) {
            alert("修改金额不能小于最低金额，请重新输入！...");
            return
        }
        var cri=id+","+updateMoney;
        var ajax = new $ax(Feng.ctxPath + "/payService/updateDealMoney11/"+cri, function (data) {
            window.parent.getdealinfolist();
            Feng.success("修改成功!");
            var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
            parent.layer.close(index);

        }, function (data) {
            Feng.error("修改失败!" + data.responseJSON.message + "!");
        });
       //ajax.set(this.payServiceInfoData);
        ajax.start();
    };

</script>
@}
